package com.example.myapplication

import cn.hutool.json.JSONUtil
import org.junit.Test

import org.junit.Assert.*

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        println(JSONUtil.toBean("{'a':112312}", A::class.java))
    }

    @Test
    fun ceshi(): Unit {
        val a = 3 - 0.1111
        val b = 2.9
        println(a::class.java)
        println(b::class.java)
    }
}

class A(var a: Int?) {
    constructor() : this(null)

    override fun toString(): String {
        return "A(a=$a)"
    }

}